package com.typing.entity;

/**
 * 用户实体类
 */
public class UserEntity extends CommonProperties {

	//	主键id
	private Integer id;

	//	用户名
	private String username;

	//	密码
	private String password;

	//	学院
	private String college;

	//	专业
	private String major;

	//	班级
	private String classes;

	//	手机号
	private String mobilePhone;

	//	分数
	private Integer score;

	//	正确率
	private Integer correct;

	//	角色
	private String role;

	//	排名
	private Integer ranking;

	//	头像
	private String headPortrait;

	//	登录标记码
	private String tag;

	//	密码盐值
	private String salt;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCollege() {
		return college;
	}

	public void setCollege(String college) {
		this.college = college;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getCorrect() {
		return correct;
	}

	public void setCorrect(Integer correct) {
		this.correct = correct;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public Integer getRanking() {
		return ranking;
	}

	public void setRanking(Integer ranking) {
		this.ranking = ranking;
	}

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	@Override
	public String toString() {
		return "UserEntity{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", college='" + college + '\'' +
				", major='" + major + '\'' +
				", classes='" + classes + '\'' +
				", mobilePhone='" + mobilePhone + '\'' +
				", score=" + score +
				", correct=" + correct +
				", role='" + role + '\'' +
				", ranking=" + ranking +
				", headPortrait='" + headPortrait + '\'' +
				", tag='" + tag + '\'' +
				", salt='" + salt + '\'' +
				'}';
	}
}
